<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/resources/common/font.css">
</head>
<body bgcolor="white" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<center>

<br>
<script> document.write(menu());</script>
<br>
<br>
<c:forEach items="${jumunInfo}" var="jumunInfo"> 
<table width="800" border="1" cellspacing="0" cellpadding="4" bordercolordark="white" bordercolorlight="black">
	<tr> 
        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">주문번호</font></td>
        <td width="300" height="20" bgcolor="#EEEEEE"><font size="3"><b>${jumunInfo.no}</b></font></td>
        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">주문일</font></td>
        <td width="300" height="20" bgcolor="#EEEEEE">${jumunInfo.orderdate}</td>
	</tr>
</table>
<br>
<table width="800" border="1" cellspacing="0" cellpadding="4" bordercolordark="white" bordercolorlight="black">
	<tr> 
        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">주문자</font></td>
        <td width="300" height="20" bgcolor="#EEEEEE">${jumunInfo.name}</td>
        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">주문자핸드폰</font></td>
        <td width="300" height="20" bgcolor="#EEEEEE">${jumunInfo.phone}</td>
	</tr>
	<tr> 
        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">주문자 E-Mail</font></td>
        <td width="300" height="20" bgcolor="#EEEEEE">${jumunInfo.email}</td>
        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">주문자우편번호</font></td>
        <td width="300" height="20" bgcolor="#EEEEEE">${jumunInfo.postcode}</td>
	</tr>
	<tr> 
        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">주문자주소</font></td>
        <td width="300" height="20" bgcolor="#EEEEEE" colspan="3">${jumunInfo.address}</td>
	</tr>
	</tr>
</table>
<img src="blank.gif" width="10" height="5"><br>

<br>

	<table width="800" border="1" cellspacing="0" cellpadding="4" bordercolordark="white" bordercolorlight="black">
		<tr> 
	        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">지불종류</font></td>
	        <td width="300" height="20" bgcolor="#EEEEEE"><c:if test="${jumunInfo.pay_method=='0'}">카드</c:if>
											 			  <c:if test="${jumunInfo.pay_method=='1'}">입금</c:if></td>
	        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">카드승인번호 </font></td>
	        <td width="300" height="20" bgcolor="#EEEEEE"><c:if test="${jumunInfo.pay_method=='0'}">${jumunInfo.card_no}</c:if>
											 			  <c:if test="${jumunInfo.pay_method=='1'}"></c:if></td>
		</tr>
		<tr> 
	        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">카드 할부</font></td>
	        <td width="300" height="20" bgcolor="#EEEEEE"><c:if test="${jumunInfo.pay_method=='0'}">${jumunInfo.card_halbu}개월</c:if>
											 			  <c:if test="${jumunInfo.pay_method=='1'}"></c:if></td>
	        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">카드종류</font></td>
	        <td width="300" height="20" bgcolor="#EEEEEE"><c:if test="${jumunInfo.pay_method=='0'}">개인</c:if>
											 			  <c:if test="${jumunInfo.pay_method=='1'}"></c:if></td>
		</tr>
		<tr> 
	        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">무통장</font></td>
	        <td width="300" height="20" bgcolor="#EEEEEE">${jumunInfo.bank_kind}</td>
	        <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">입금자이름</font></td>
	        <td width="300" height="20" bgcolor="#EEEEEE">${jumunInfo.bank_sender}</td>
		</tr>
	</table>

	
<br>
<table width="800" border="1" cellspacing="0" cellpadding="4" bordercolordark="white" bordercolorlight="black">
	<tr bgcolor="#CCCCCC"> 
    <td width="340" height="20" align="center"><font color="#142712">상품명</font></td>
		<td width="50"  height="20" align="center"><font color="#142712">수량</font></td>
		<td width="70"  height="20" align="center"><font color="#142712">단가</font></td>
		<td width="70"  height="20" align="center"><font color="#142712">금액</font></td>
		<td width="50"  height="20" align="center"><font color="#142712">할인</font></td>
		<td width="60"  height="20" align="center"><font color="#142712">옵션1</font></td>
		<td width="60"  height="20" align="center"><font color="#142712">옵션2</font></td>
	</tr>
	<tr bgcolor="#EEEEEE" height="20">	
		<td width="340" height="20" align="left">${jumunInfo.NAME}</td>	
		<td width="50"  height="20" align="center">${jumunInfo.quantity}</td>	
		<td width="70"  height="20" align="right">${jumunInfo.PRICE}</td>	
		<td width="70"  height="20" align="right">금액들어갈 곳</td>	
		<td width="50"  height="20" align="center">할인들어갈곳</td>	
		<td width="60"  height="20" align="center">${jumunInfo.opts1}</td>	
		<td width="60"  height="20" align="center">${jumunInfo.opts2}</td>	
	</tr>
</table>
<img src="blank.gif" width="10" height="5"><br>
<table width="800" border="1" cellspacing="0" cellpadding="4" bordercolordark="white" bordercolorlight="black">
	<tr> 
	  <td width="100" height="20" bgcolor="#CCCCCC" align="center"><font color="#142712">총금액</font></td>
		<td width="700" height="20" bgcolor="#EEEEEE" align="right"><font color="#142712" size="3"><b>${jumunInfo.PRICE * jumunInfo.quantity }</b></font> 원&nbsp;&nbsp</td>
	</tr>
</table>
</c:forEach>
<br>
<table width="800" border="0" cellspacing="0" cellpadding="7">
	<tr> 
		<td align="center">
			<input type="button" value="이 전 화 면" onClick="javascript:history.back();">&nbsp
			<input type="button" value="프린트" onClick="javascript:print();">
		</td>
	</tr>
</table>

</center>

<br>

</body>
</html>